package com.usian.behavior.controller;

import com.usian.apis.behavior.ApBehaviorEntryControllerApi;
import com.usian.behavior.service.ApBehaviorEntryService;
import com.usian.model.behavior.pojos.ApBehaviorEntry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * ClassName: ApBehaviorEntryController
 * Author:   WGG
 * Date:    2022-12-2022/12/1-20:45
 * Version: 1.0
 * Description:
 */
@RestController
@RequestMapping("/behavior/api/v1/behavior")
public class ApBehaviorEntryController implements ApBehaviorEntryControllerApi {

    @Autowired
    private ApBehaviorEntryService apBehaviorEntryService;

    @Override
    @PostMapping("/show_behavior")
    public ApBehaviorEntry showBehavior(@RequestParam("entryId") Integer entryId,@RequestParam("equipmentId") Integer equipmentId) {
        return apBehaviorEntryService.showBehavior(entryId,equipmentId);
    }

 }
